#include <wiringPi.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

#include "UartTool.h"


struct cmdFact{
		int fd;
		int sock_fd;
		char deviceName[64];
		char cmdname[128];
		char cmd[32];
		char port[8];
		char ipAddr[32];
		int (*Init)(struct cmdFact *device);
		int (*getCmd)(struct cmdFact *device);
		char logdata[1024];

		struct cmdFact *next;
};

struct cmdFact* addVoiceToCmdLink(struct cmdFact* phead);

struct cmdFact* addSocketToCmdLink(struct cmdFact* phead);


